
App({
    systemInfo: null,
    isLogin:false,
    onLaunch() {
        const self = this;
        const token = wx.getStorageSync('token');
        if (token) {
            self.isLogin = true
            wx.reLaunch({
                url: '/pages/home/home',
            })

        } else {
            wx.redirectTo({
                url: '/pages/login/login',
            })
        }
        wx.getSystemInfo({
            success(res) {
                self.systemInfo = res;
            },
        });
    },
});